<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">

<head th:fragment="appheader">
    <meta charset="UTF-8">
    <title>DISI博客</title>

    <!-- 网站图标 -->
    <link rel="icon" type="image/x-icon" href="/images/favicon.ico"/>

    <style>
        html,
        body {
            width: 100%;
            height: 100%;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        .page {
            display: flex;
            flex-flow: column;
            width: 100%;
            height: 100%;
        }

        .page-header {
            display: flex;
            align-items: center;
            width: 100%;
            height: 80px;
            background-color: #ffa1aa;
        }

        .page-content{
            flex: 1;
            display: flex;
            flex-flow: column;
            overflow-x: hidden;
            overflow-y: auto;
        }

        .logo {
            flex: 1;
            padding: 0 0 0 60px;
        }

        .logo > .title {
            color: #d2ffa9;
            font-size: 16px;
            font-weight: 700;
            text-decoration: none;
        }

        .logo > .title:hover {
            color: orange;
        }

        .buttons > .btn {
            display: inline-block;
            cursor: pointer;
            padding: 2px;
            color: #d2ffa9;
            font-size: 16px;
            font-weight: 700;
            margin-left: 6px;
            text-decoration: none;
        }
        .buttons > .btn:hover {
            color: orange;
        }

        .search {
            padding: 0 20px 0 12px;
        }

        .search > img {
            width: 16px;
            height: 16px;
            color: #d2ffa9;
            cursor: pointer;
        }
    </style>
</head>

<body>
<div class="page-header" th:fragment="pageheader">
    <div class="logo">
        <a class="title" href="/">DISI Blogs 个人博客小站</a>
    </div>

    <div class="buttons">
        <a class="btn" href="/login">退出</a>
        <a class="btn" href="/management">后台管理</a>
    </div>

    <div class="search">
        <img src="/images/search.svg">
    </div>
</div>
<div class="page-content" th:fragment="pagecontent">页面内容</div>

</body>

</html>